package com.yc.web.controller.system;

import com.yc.common.annotation.Log;
import com.yc.common.enums.OperationType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "Hello接口")
@RestController
public class HelloController {

    @ApiOperation("问候接口")
    @GetMapping("/hello")
    @Log(module = "测试接口", type = OperationType.TEST, description = "测试接口（需要token）")
    public String hello() {
        String name = "test";
        return "hello" + name;
    }
}